﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Projeto_Alice___Forca
{
    class Seta
    {
        Texture2D t2dimg;
        Texture2D t2dimg2;
        Vector2 v2dPos_seta;
        bool blnmouseclicked = false;


        public Seta(Texture2D t2dimg, Texture2D t2dimg2)
        {
            this.t2dimg = t2dimg;
            this.t2dimg2 = t2dimg2;
            v2dPos_seta = new Vector2(Mouse.GetState().X,
                                   Mouse.GetState().Y);
        }

        public void Mover_seta()
        {
            v2dPos_seta = new Vector2(Mouse.GetState().X,
                                 Mouse.GetState().Y);
            if (Mouse.GetState().LeftButton == ButtonState.Pressed)
            {
                blnmouseclicked = true;
            }

            else
            {
                blnmouseclicked = false;

            }
        }

        public void Desenhar(SpriteBatch spritebach)
        {
            if (!blnmouseclicked)
            spritebach.Draw(t2dimg, v2dPos_seta, Color.White);

            else
                spritebach.Draw(t2dimg2, v2dPos_seta, Color.White);
            
        }

    }
}
